home *** CD-ROM | disk | FTP | other *** search
/ Gamers Delight 2 / Gamers Delight 2.iso / Aminet / game / misc / TownMaze.lha / TownMaze / src.lzh / showlistdet.c < prev    next >
C/C++ Source or Header  |  1991-08-04  |  1KB  |  48 lines

  1. /*
  2. ** showlistdet.c  Copyright 1991 Kent Paul Dolan,
  3. **                Mountain View, CA, USA 94039-0755
  4. **
  5. ** Written to satisfy an inquiry on USENet's rec.games.programmer newsgroup.
  6. ** May be freely used or modified in any non-commercial work.  Copyrighted
  7. ** only to prevent patenting by someone else.
  8. */
  9.  
  10. #include <stdio.h>
  11. #include "townmaze.h"
  12. #include "townproto.h"
  13.  
  14. #ifdef __STDC__
  15. void showlistdetail()
  16. #else
  17. int showlistdetail()
  18. #endif
  19. {
  20.  
  21.   int i, j;
  22.  
  23.   for (i = 0; i < (mazeheight/2); i++)
  24.   {
  25.     for (j = 0; j < (mazewidth/2); j++)
  26.       fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].prev);
  27.     fprintf(stderr,"\n");
  28.  
  29.     for (j = 0; j < (mazewidth/2); j++)
  30.       fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].next);
  31.     fprintf(stderr,"\n");
  32.  
  33.     for (j = 0; j < (mazewidth/2); j++)
  34.       fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].status);
  35.     fprintf(stderr,"\n");
  36.  
  37.     for (j = 0; j < (mazewidth/2); j++)
  38.       fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].streetnum);
  39.     fprintf(stderr,"\n");
  40.  
  41.     for (j = 0; j < (mazewidth/2); j++)
  42.       fprintf(stderr,"%4d ",statlist[j + ((mazewidth/2)*i)].streetdir);
  43.     fprintf(stderr,"\n\n");
  44.  
  45.   }
  46.   return;
  47. }
  48.